package lichao;

import lichao.config.Config;
import lichao.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class TestMain {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(Config.class);

        UserService bean = annotationConfigApplicationContext.getBean(UserService.class);
        bean.addUser();
        System.out.println("all");
    }

}
